home *** CD-ROM | disk | FTP | other *** search
- /*
- ##########################################################################
- #### ####
- #### The MusicBox Project ####
- #### ============================ ####
- #### ####
- #### MusicBoxLibrary.h ####
- #### ####
- #### Version 2.1os -- September 29, 2000 ####
- #### ####
- #### Copyright (C) 1994 Thomas Dreibholz ####
- #### 2000 Molbachweg 7 ####
- #### 51674 Wiehl ####
- #### Germany ####
- #### ####
- #### EMail: Dreibholz@bigfoot.com ####
- #### WWW: http://www.bigfoot.com/~dreibholz ####
- #### ####
- ##########################################################################
- */
- /***************************************************************************
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- ***************************************************************************/
-
- /* MusicBox-Library Include-Datei */
-
- #include <exec/types.h>
-
- struct TrackInfo
- {
- ULONG SAddress;
- ULONG TAddress;
- UBYTE Title[50];
- };
-
- struct MusicBoxInfo
- {
- ULONG Address;
- UBYTE Track;
- UBYTE Minute;
- UBYTE Second;
- UBYTE Frame;
-
- UBYTE IsInserted;
- UBYTE IsAudioCD;
- UBYTE Function;
- UBYTE TrackCount;
-
- ULONG DiscID;
- UBYTE CDTitle[50];
- struct TrackInfo TrackInfo[99];
- };
-
- struct MusicBoxCommand
- {
- struct Message Message;
- WORD Command;
- WORD Status;
- LONG Args[8];
-
- ULONG SignalMask;
- UBYTE *HostName;
- struct MsgPort *ReplyPort;
-
- struct MusicBoxInfo MusicBoxInfo;
- };
-
- #define MUSICBOX_HOSTNAME "<Music Box Control>"
- #define ARCHIVE_HOSTNAME "<Music Box Archive Control>"
-
- #define MBC_VERSION 1
- #define MBC_PLAY 2
- #define MBC_STOP 3
- #define MBC_PAUSE 4
- #define MBC_CONTINUE 5
- #define MBC_EJECT 6
- #define MBC_PLAYADR 7
- #define MBC_CHANNELS 8
- #define MBC_VOLUME 9
- #define MBC_LOCK 10
-
- #define MBC_GETINFO 50
- #define MBC_GETPOSITION 51
- #define MBC_UNICONIFY 60
- #define MBC_ICONIFY 61
-
- #define MBCS_OK 0
- #define MBCS_UNKNOWN_CMD 1
- #define MBCS_CDTYPE 2
- #define MBCS_EJECTED 3
- #define MBCS_EJECTLOCK 4
- #define MBCS_NOT_PLAYING 5
- #define MBCS_NOT_PAUSED 6
- #define MBCS_NO_MEMORY 7
- #define MBCS_NO_PORT 8
-
- #define MBF_STANDBY 0
- #define MBF_PLAY 1
- #define MBF_PAUSE 2
- #define MBF_STOP 3
-
- #define MBCC_LEFT 1
- #define MBCC_RIGHT 2
- #define MBCC_LR 3
- #define MBCC_NOCHANGE 4
- #define MBCC_NONE 0
-
- struct InfoText
- {
- UWORD LeftEdge;
- UWORD TopEdge;
- UWORD Flags;
- UBYTE *Text;
- };
-
- #define ISTF_LEFT 0
- #define ISTF_RIGHT 1
-
- struct InfoStruct
- {
- UBYTE *Title;
- UBYTE *ProgName;
- BOOL LowRes;
- struct DiskObject *Icon;
- struct InfoText Text[10];
- UBYTE *RegInfo;
- };
-
- #define OA_QUIET (1L<<1)
- #define OA_LOWRES (1L<<2)
-
-